﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using Telerik.WinControls;

namespace clsEmployeeList.Forms
{
    public partial class frmPasswordSetup : Telerik.WinControls.UI.RadForm
    {
        private int intXCoordinate = 0;
        private int intYCoordinate = 0;
        public frmPasswordSetup()
        {
            InitializeComponent();
        }

        private void radButton1_Click(object sender, EventArgs e)
        {
            DialogResult = DialogResult.OK;
        }

        private void radButton2_Click(object sender, EventArgs e)
        {
            DialogResult = DialogResult.Cancel;
        }

        private void chkEditPassword_ToggleStateChanged(object sender, Telerik.WinControls.UI.StateChangedEventArgs args)
        {
            if (chkEditPassword.Checked == true)
            {
                txtOldPassword.Enabled = true;
            }
            else
            {
                txtOldPassword.Enabled = false;
            }
 
        }

        public void set_NewLocation(int intX, int intY)
        {
            intXCoordinate = intX;
            intYCoordinate = intY;
        }

        private void frmPasswordEntry1_Load(object sender, EventArgs e)
        {
            this.TopMost = true;
            this.Location = new Point(intXCoordinate, intYCoordinate);

            txtOldPassword.Enabled = false;
        }
    }
}
